using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using Gestion.Core.Service.Generic;
using Gestion.Core.Data.Generic;

namespace Gestion.Service.Business.Generic
{
    public class GenericBusinessService<T,ID,DAO> : GenericReadOnlyBusinessService<T, ID, DAO>, IGenericBusinessService<T, ID> where DAO : IGenericDao<T, ID>
    {

        public virtual void Save(T entity)
        {
            Dao.Save(entity);
        }

        public virtual void SaveOrUpdate(T entity)
        {
            Dao.SaveOrUpdate(entity);
        }

        public virtual void Update(T entity)
        {
            Dao.Update(entity);
        }

        public virtual void Delete(T entity)
        {
            Dao.Delete(entity);
        }

        public virtual void DeleteById(ID id)
        {
            Dao.DeleteById(id);
        }

        public virtual void Refresh(T entity)
        {
            Dao.Refresh(entity);
        }
       
    }
}
